﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004EF RID: 1263
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExchangeGachaCeilingScRsp : IMessage<ExchangeGachaCeilingScRsp>, IMessage, IEquatable<ExchangeGachaCeilingScRsp>, IDeepCloneable<ExchangeGachaCeilingScRsp>, IBufferMessage
	{
		// Token: 0x17001059 RID: 4185
		// (get) Token: 0x06003922 RID: 14626 RVA: 0x0009D34F File Offset: 0x0009B54F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExchangeGachaCeilingScRsp> Parser
		{
			get
			{
				return ExchangeGachaCeilingScRsp._parser;
			}
		}

		// Token: 0x1700105A RID: 4186
		// (get) Token: 0x06003923 RID: 14627 RVA: 0x0009D356 File Offset: 0x0009B556
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExchangeGachaCeilingScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700105B RID: 4187
		// (get) Token: 0x06003924 RID: 14628 RVA: 0x0009D368 File Offset: 0x0009B568
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExchangeGachaCeilingScRsp.Descriptor;
			}
		}

		// Token: 0x06003925 RID: 14629 RVA: 0x0009D36F File Offset: 0x0009B56F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeGachaCeilingScRsp()
		{
		}

		// Token: 0x06003926 RID: 14630 RVA: 0x0009D378 File Offset: 0x0009B578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeGachaCeilingScRsp(ExchangeGachaCeilingScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.transferItemList_ = ((other.transferItemList_ != null) ? other.transferItemList_.Clone() : null);
			this.gachaCeiling_ = ((other.gachaCeiling_ != null) ? other.gachaCeiling_.Clone() : null);
			this.gachaType_ = other.gachaType_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003927 RID: 14631 RVA: 0x0009D3F8 File Offset: 0x0009B5F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeGachaCeilingScRsp Clone()
		{
			return new ExchangeGachaCeilingScRsp(this);
		}

		// Token: 0x1700105C RID: 4188
		// (get) Token: 0x06003928 RID: 14632 RVA: 0x0009D400 File Offset: 0x0009B600
		// (set) Token: 0x06003929 RID: 14633 RVA: 0x0009D408 File Offset: 0x0009B608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700105D RID: 4189
		// (get) Token: 0x0600392A RID: 14634 RVA: 0x0009D411 File Offset: 0x0009B611
		// (set) Token: 0x0600392B RID: 14635 RVA: 0x0009D419 File Offset: 0x0009B619
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList TransferItemList
		{
			get
			{
				return this.transferItemList_;
			}
			set
			{
				this.transferItemList_ = value;
			}
		}

		// Token: 0x1700105E RID: 4190
		// (get) Token: 0x0600392C RID: 14636 RVA: 0x0009D422 File Offset: 0x0009B622
		// (set) Token: 0x0600392D RID: 14637 RVA: 0x0009D42A File Offset: 0x0009B62A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeiling GachaCeiling
		{
			get
			{
				return this.gachaCeiling_;
			}
			set
			{
				this.gachaCeiling_ = value;
			}
		}

		// Token: 0x1700105F RID: 4191
		// (get) Token: 0x0600392E RID: 14638 RVA: 0x0009D433 File Offset: 0x0009B633
		// (set) Token: 0x0600392F RID: 14639 RVA: 0x0009D43B File Offset: 0x0009B63B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaType
		{
			get
			{
				return this.gachaType_;
			}
			set
			{
				this.gachaType_ = value;
			}
		}

		// Token: 0x17001060 RID: 4192
		// (get) Token: 0x06003930 RID: 14640 RVA: 0x0009D444 File Offset: 0x0009B644
		// (set) Token: 0x06003931 RID: 14641 RVA: 0x0009D44C File Offset: 0x0009B64C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06003932 RID: 14642 RVA: 0x0009D455 File Offset: 0x0009B655
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExchangeGachaCeilingScRsp);
		}

		// Token: 0x06003933 RID: 14643 RVA: 0x0009D464 File Offset: 0x0009B664
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExchangeGachaCeilingScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.TransferItemList, other.TransferItemList) && object.Equals(this.GachaCeiling, other.GachaCeiling) && this.GachaType == other.GachaType && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003934 RID: 14644 RVA: 0x0009D4E8 File Offset: 0x0009B6E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.transferItemList_ != null)
			{
				num ^= this.TransferItemList.GetHashCode();
			}
			if (this.gachaCeiling_ != null)
			{
				num ^= this.GachaCeiling.GetHashCode();
			}
			if (this.GachaType != 0U)
			{
				num ^= this.GachaType.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003935 RID: 14645 RVA: 0x0009D585 File Offset: 0x0009B785
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003936 RID: 14646 RVA: 0x0009D58D File Offset: 0x0009B78D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003937 RID: 14647 RVA: 0x0009D598 File Offset: 0x0009B798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.gachaCeiling_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.GachaCeiling);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.transferItemList_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.TransferItemList);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.GachaType != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.GachaType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003938 RID: 14648 RVA: 0x0009D648 File Offset: 0x0009B848
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.transferItemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TransferItemList);
			}
			if (this.gachaCeiling_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.GachaCeiling);
			}
			if (this.GachaType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaType);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003939 RID: 14649 RVA: 0x0009D6E8 File Offset: 0x0009B8E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExchangeGachaCeilingScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.transferItemList_ != null)
			{
				if (this.transferItemList_ == null)
				{
					this.TransferItemList = new ItemList();
				}
				this.TransferItemList.MergeFrom(other.TransferItemList);
			}
			if (other.gachaCeiling_ != null)
			{
				if (this.gachaCeiling_ == null)
				{
					this.GachaCeiling = new GachaCeiling();
				}
				this.GachaCeiling.MergeFrom(other.GachaCeiling);
			}
			if (other.GachaType != 0U)
			{
				this.GachaType = other.GachaType;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600393A RID: 14650 RVA: 0x0009D7A4 File Offset: 0x0009B9A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600393B RID: 14651 RVA: 0x0009D7B0 File Offset: 0x0009B9B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 10U)
					{
						if (this.gachaCeiling_ == null)
						{
							this.GachaCeiling = new GachaCeiling();
						}
						input.ReadMessage(this.GachaCeiling);
						continue;
					}
					if (num == 16U)
					{
						this.AvatarId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						if (this.transferItemList_ == null)
						{
							this.TransferItemList = new ItemList();
						}
						input.ReadMessage(this.TransferItemList);
						continue;
					}
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.GachaType = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001673 RID: 5747
		private static readonly MessageParser<ExchangeGachaCeilingScRsp> _parser = new MessageParser<ExchangeGachaCeilingScRsp>(() => new ExchangeGachaCeilingScRsp());

		// Token: 0x04001674 RID: 5748
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001675 RID: 5749
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04001676 RID: 5750
		private uint retcode_;

		// Token: 0x04001677 RID: 5751
		public const int TransferItemListFieldNumber = 7;

		// Token: 0x04001678 RID: 5752
		private ItemList transferItemList_;

		// Token: 0x04001679 RID: 5753
		public const int GachaCeilingFieldNumber = 1;

		// Token: 0x0400167A RID: 5754
		private GachaCeiling gachaCeiling_;

		// Token: 0x0400167B RID: 5755
		public const int GachaTypeFieldNumber = 13;

		// Token: 0x0400167C RID: 5756
		private uint gachaType_;

		// Token: 0x0400167D RID: 5757
		public const int AvatarIdFieldNumber = 2;

		// Token: 0x0400167E RID: 5758
		private uint avatarId_;
	}
}
